package com.wd.live.view;

import android.content.Intent;
import android.util.Log;
import android.view.View;

import com.wd.live.R;
import com.wd.live.base.BaseFragment;
import com.wd.live.base.BaseViewModel;
import com.wd.live.databinding.SexFragmentBinding;
import com.wd.live.view.activity.MainActivity;

public class SexFragment extends BaseFragment<BaseViewModel, SexFragmentBinding> {


    @Override
    protected void initData() {
        databind.jump.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), MainActivity.class);
                startActivity(intent);
            }
        });
    databind.manrb.setChecked(false);
    databind.womanrb.setChecked(false);
    databind.manrb.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            databind.manrb.setChecked(true);
            databind.womanrb.setChecked(false);
            databind.mankuang.setVisibility(View.VISIBLE);
            databind.womankuang.setVisibility(View.GONE);
            Log.v("man",1+"");
        }
    });
    databind.womanrb.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            databind.womanrb.setChecked(true);
            databind.manrb.setChecked(false);
            databind.womankuang.setVisibility(View.VISIBLE);
            databind.mankuang.setVisibility(View.GONE);
            Log.v("woman",2+"");
        }
    });
    }

    @Override
    protected int initLayout() {
        return R.layout.sex_fragment;
    }

    @Override
    public void onChanged(Object o) {

    }
}